﻿import { Book } from './book.model'

export class dataSource{
  private books: Book[];

  constructor() {
    this.books = new Array<Book>(
      new Book(1,'War and Peace','Tolstoy',20),
      new Book(2,'My Children','Moriarty',10),
      new Book(3,'Sweaters','Sherlock',15),
    );
  }

  getBooks():Book[]{
    return this.books;
  }
}
